package com.shalanzi.hospital.service.impl;

import com.shalanzi.hospital.mapper.TestMapper;
import com.shalanzi.hospital.pojo.TestClass;
import com.shalanzi.hospital.service.TestService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Dream_飞翔
 * @date 2021/9/23
 * @time 20:40
 * @email 1072876976@qq.com
 */
@Service
public class TestServiceImpl implements TestService {
    @Resource
    private TestMapper testMapper;

    @Override
    public List<TestClass> testMethod() {
        return testMapper.selectList(null);
    }

    @Override
    public Integer addTest(TestClass testClass) {
        return testMapper.insert(testClass);
    }
}
